// 1、两个集合求交集
let arr = [1,2,3,4,5,4,3,2,1];
let arr2 = [4,5,6,5,6];
//首先先对数组去重
let result = [...new Set(arr)];
let result2 = [...new Set(arr2)];
